class Usuario < ActiveRecord::Base
  belongs_to :cliente
  belongs_to :destino
  has_many :ordenes_compra, :through => :destino, :source =>:ordenes_compra
  belongs_to :perfil, :foreign_key => "NivelAcceso"
 
 
end
